package com.chatsimple

import org.slf4j.LoggerFactory

private val logger = LoggerFactory.getLogger("TCPServer")

fun logDebug(msg: String) {
    logger.debug(msg)
}

inline fun String?.ifEmpty(block: () -> String): String {
    return if (this.isNullOrEmpty()) block() else this
}
